package cn.johnyu.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.commons.dto.AccountDto;

import java.util.List;

@Mapper
public interface AccountMapper {

    @Select("select * from accounts")
    List<AccountDto> findAllAccounts();
    @Select("select * from accounts where id=#{id}")
    AccountDto findAccountById(int id);
}
